package Day10Zuoye;

import java.util.Scanner;

public class CalculateTest {
    public static void main(String[] args) throws Exception {
        Scanner in=new Scanner(System.in);
        try{
            System.out.println("输入总课时:");
            int i=in.nextInt();
            if (i<100){
                throw new Exception("总课时不能小于100！");
            }
            System.out.println("输入课程数:");
            int j=in.nextInt();
            int k=i/j;
            System.out.println("平均课时:"+k);
        }catch (Exception e){
            System.out.println("输入错误");
            System.out.println(e);
        }


    }
}
